package edu.spec.basic.dao.iface;

import edu.spec.basic.model.User;
import edu.spec.basic.model.dto.UserDto;
import edu.spec.basic.model.enumeration.YesNo;
import org.madgecko.basic.dao.IBaseDao;
import org.madgecko.basic.model.Pager;

import java.util.List;

public interface IUserDao extends IBaseDao<User> {
	User loadByName(String name);
	Pager<User> findUserByCon(Integer status, String con);
	List<User> listUserByRole(Integer roleId);
    User loadByOpenId(String openId);
    List<Integer> listIdsByFormal(YesNo yesNo);
    List<Integer> listIdsByCommunist(YesNo yesNo);
    List<User> listAll();
    List<User> listUserByIds(String ids);
    List<UserDto> listUserDtoByIdString(String idString);
}
